﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataManageSystem.Models.LimsModels;

public partial class TEquipment
{
    /// <summary>
    /// 主键
    /// </summary>
    public string Guid { get; set; } = null!;

    /// <summary>
    /// 设备名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 设备编码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// 设备安装时间
    /// </summary>
    public DateTime? InstallationDate { get; set; }

    /// <summary>
    /// 上次维保时间
    /// </summary>
    public DateTime? LastMaintenanceTime { get; set; }

    /// <summary>
    /// 计划下次维保时间
    /// </summary>
    public DateTime? NextMaintenanceTime { get; set; }

    /// <summary>
    /// 设备类型
    /// </summary>
    public string? Type { get; set; }

    /// <summary>
    /// 生产公司
    /// </summary>
    public string? ProductionCompany { get; set; }

    /// <summary>
    /// 额外的信息
    /// </summary>
    public string? AdditionalInfo { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }

    /// <summary>
    /// 有效状态
    /// </summary>
    public bool? Valid { get; set; }

    /// <summary>
    /// 用户部门ID
    /// </summary>
    public string? DeptGuid { get; set; }

    /// <summary>
    /// 设备地址
    /// </summary>
    public string? Position { get; set; }

    public string? SpaceGuid { get; set; }

    /// <summary>
    /// 状态，1：空闲中，2：使用中，3：维护中，4：借用中
    /// </summary>
    public int? Status { get; set; }

    /// <summary>
    /// 负责人Guid
    /// </summary>
    public string? AdministratorGuid { get; set; }

    /// <summary>
    /// 批号
    /// </summary>
    public string? BatchNumber { get; set; }

    /// <summary>
    /// 在线状态读取点位guid
    /// </summary>
    public string? OnlineStatusConfig { get; set; }

    /// <summary>
    /// 维保公司guid
    /// </summary>
    public string? MaintenanceCompanyGuid { get; set; }

    public int? UseType { get; set; }

    /// <summary>
    /// 是否可被控制，0：否，1：是
    /// </summary>
    public int? BeControlled { get; set; }

    /// <summary>
    /// 所属系统分类
    /// </summary>
    public string? SystemClassification { get; set; }

    public string? RegisterCode { get; set; }

    public string? RegisterStateKey { get; set; }

    public string? RegisterStateGuid { get; set; }

    public string? Installer { get; set; }

    public string? Supplier { get; set; }

    public string? Purchaser { get; set; }

    public DateTime? PurchaseTime { get; set; }

    //public string? TestScope { get; set; }

    //public string? Level { get; set; }

    //public string? PrecisionStr { get; set; }

    //public string? UseDept { get; set; }

    //public string? UserName { get; set; }

    //public string? DetectCycle { get; set; }

    //public string? StorageLocation { get; set; }

    [NotMapped]
    public string? Protocol { get; set; }

}
